
// Try to load config.ts first, fallback to config.default.ts
let config: any = null;

export async function loadConfig() {

    if(config) {
        return config
    }
    
    try {
        config = await import('./conf.ts');
    } catch (e) {
        config = await import('./conf.default.ts');
        console.log('Using default configuration (config.ts not found)');
    }
      
    return config
}